package LookAndFeel;

import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JLabel;

public class Label extends JLabel{

	private static final long serialVersionUID = 1L;


	public Label(String nom) {
		this.setFont(new Font("Segoe Script", Font.BOLD, 14));
		this.setText("<html><div color='white'>"+nom+"</div></html>");
	}
	
	
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		Image image = getToolkit().getImage("./src/Images/Menu/fondLabel.png");
		g.drawImage(image, 0, 0, this);
	}
}
